* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

html,
body,
#root,
.app {
    width: 100%;
    height: 100%;
}

.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 50px;
    background: #f1f1f1;

    a {
        color: #ccc;

        &.active {
            color: black;
        }
    }
}

.home,
.shop,
.my {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;

    .main {
        width: 100%;
        flex: 1;

        .nav {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 100%;
            height: 50px;
            border-bottom: 1px solid #ccc;

            a {
                color: #ccc;

                &.active {
                    color: black;
                }
            }
        }

        .list {
            width: 100%;
            padding: 0 20px;

            .item {
                display: block;
                width: 100%;
                height: 100px;

                span {
                    color: black;
                    margin-left: 20px;
                }
            }
        }
    }
}

.detail {
    display: flex;
    width: 100%;
    height: 100%;

    .nav {

        width: 100px;
        height: 100%;
        border-right: 1px solid #ccc;
        background: #eee;

        a {
            display: block;
            width: 100%;
            height: 40px;
            line-height: 40px;
            text-align: center;
            color: black;

            &.active {
                background: #fff;
            }
        }
    }

    .detlist {
        flex: 1;
        height: 100%;

        .detlist-item {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            height: 100px;
            padding-left: 15px;

            .add {
                position: absolute;
                right: 20px;
                top: 60%;
                width: 20px;
                height: 20px;
                line-height: 20px;
                text-align: center;
                border-radius: 50%;
                background: skyblue;

            }
        }
    }

    .toCart {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 50px;
        line-height: 50px;
        text-indent: 20px;
        background: #ccc;
    }
}

.cart {
    width: 100%;
    height: 100%;

    .toAddress {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid #ccc;


        p {
            span {
                margin-right: 10px;
                color: #666;
            }
        }
    }

    .content {
        width: 100%;

        .cart-item {
            position: relative;
            display: flex;
            width: 100%;

            img {
                padding: 10px;
            }

            div {
                display: flex;
                flex-direction: column;
                justify-content: space-around;
            }

            span {
                position: absolute;
                right: 20px;
                top: 60%;
                display: block;
                width: 20px;
                height: 20px;
                line-height: 20px;
                text-align: center;
                border-radius: 50%;
                background: skyblue;
            }
        }
    }

    .totalPrice {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        line-height: 50px;
        text-indent: 20px;
        background: #eee;

        span {
            margin-right: 10px;
        }

        b {
            display: inline-block;
            width: 100px;
            height: 100%;
            line-height: 50px;
            background: skyblue;
            color: #fff;
            float: right;
        }
    }

    .mask {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba($color: #000000, $alpha: 0.4);

        .time {
            position: fixed;
            left: 0;
            bottom: 0;
            width: 100%;
            background: #fff;

            p {
                width: 100%;
                line-height: 40px;
                text-align: center;
            }
        }
    }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border-bottom: 1px solid #ccc;
}

.address {
    width: 100%;
    height: 100%;

    .addr_list {
        width: 100%;

        .item {
            width: 100%;
            padding: 15px;
            border-bottom: 1px solid #ccc;

            p {
                span {
                    margin-right: 10px;
                    color: #666;
                }
            }
        }
    }

    .add-address {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        line-height: 50px;
        text-align: center;
        border-top: 1px solid #ccc;
    }
}

.add_address {
    width: 100%;
    height: 100%;

    div {
        width: 100%;
        text-align: center;
        padding: 15px;

        input {
            border: 1px solid #ccc;
            width: 200px;
            height: 30px;
            border-radius: 5px;
        }
    }

    .btn {
        background: #ccc;
        border-radius: 5px;
        margin-top: 30px;
    }
}